package com.ztools.wx.service.impl;

import com.ztools.api.service.pc.PcCouponService;
import com.ztools.common.model.pc.coupon.CouponRecord;
import com.ztools.wx.service.WxCouponService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: seeTools
 * @Date: 2023/5/14  11:56
 * @Version 1.0
 */
@Service
public class WxCouponServiceImpl implements WxCouponService {

    @Reference(version = "1.0", check = false, timeout = 3000)
    private PcCouponService pcCouponService;


    @Override
    public List<CouponRecord> findByObject(CouponRecord couponRecord) {
        return pcCouponService.findByObject(couponRecord);
    }

    @Override
    public List<CouponRecord> getCouponInfo(Long memberId) {
        return pcCouponService.getCouponInfo(memberId);
    }

    @Override
    public List<CouponRecord> getCouponTypeNumber(Long memberId) {
        return pcCouponService.getCouponTypeNumber(memberId);
    }

    @Override
    public CouponRecord getCouponPacket(CouponRecord couponRecord) {
        return pcCouponService.getCouponPacket(couponRecord);
    }

    @Override
    public CouponRecord getCouponUsable(CouponRecord couponRecord) {
        return pcCouponService.getCouponUsable(couponRecord);
    }

}
